<HTML>
<HEAD>
<TITLE>
Clave.h
</TITLE>
</HEAD>
<BODY>
<PRE>
<font color="green">/*
 * Clave.h
 *
 *  Created on: 16/10/2009
 *      Author: andres
 */</font>

<font color="blue">#ifndef</font> CLAVE_H_
<font color="blue">#define</font> CLAVE_H_




<font color="blue">#include</font> <font color="maroon">&#60;stdio.h&#62;</font>
<font color="blue">#include</font> <font color="maroon">&#60;stdlib.h&#62;</font>
<font color="blue">#include</font> <font color="maroon">&#60;string.h&#62;</font>
<font color="green">//#include "../Indice.inc.h"</font>
<font color="blue">#include</font> <font color="maroon">"Informacion.h"</font>

<font color="blue">class</font> Informacion;

<font color="green">/*
 * guarda la informacion de la clave
 */</font>
<font color="blue">class</font> Clave
<font color="black">{</font>
<font color="blue">public</font><font color="black">:</font>
    Clave<font color="black">(</font><font color="blue">int</font> tamanioClave<font color="black">)</font>;

    <font color="blue">int</font> Comparar<font color="black">(</font>Informacion<font color="black">*</font> DatoAComparar<font color="black">)</font>;

    <font color="blue">int</font> Comparar<font color="black">(</font>Clave<font color="black">*</font> DatoAComparar<font color="black">)</font>;

    <font color="blue">void</font> Cargar<font color="black">(</font><font color="blue">char</font><font color="black">*</font> info<font color="black">)</font>;

    virtual ~Clave<font color="black">(</font><font color="black">)</font>;

<font color="blue">private</font><font color="black">:</font>
    <font color="blue">char</font><font color="black">*</font> clave;
    <font color="blue">int</font> tamanioClave;
<font color="black">}</font>;

<font color="blue">#endif</font> <font color="green">/* CLAVE_H_ */</font>

</PRE>
</BODY>
</HTML>
